#define _CRT_SECURE_NO_WARNINGS
#include "SingalListTurnOver.h"
#include <stdlib.h>


SLTNode* SingalListTurnOver(SLTNode** pphead)
{
	if (*pphead == NULL)
		return NULL;
	SLTNode* n1, *n2, *n3;
	n1 = NULL;
	n2 = *pphead;
	n3 = (*pphead)->NextNode;
	while (n2)
	{
		n2->NextNode = n1;
		n1 = n2;
		n2 = n3;
		if (n3)
		{
			n3 = n3->NextNode;
		}
		
	}
	return n1;
}